<template>
  <div>
    <div @click="increment">Vue App Click This! count++</div>
    <div>count: {{count}}</div>
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    name: "App",
    data () {
      return {}
    },
    computed: {
      count () {
        return this.$store.state.count
      }
    },
    methods: {
      increment () {
        this.$store.commit('increment');
      }
    }
  };
</script>

<style scoped>

</style>
